package com.ganzi.ganziserver.core;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ganzi.ganziserver.utils.GetTime;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Timestamp;

@Data
@Builder
public class ControlLog implements Serializable {

    private long id;
    private long userId;
    private long schoolId;
    private int sendType;
    private int controlType;
    private int sendState;
    private String information;
    private String stateInformation;
    //temp
    private String schoolName;
    private int collectNumber;
    private int fanNumber;
    private long createTime;
    private String tempcreateTime;
    private String infoId;


    public void setCreateTime(long createTime) {
        this.createTime = createTime;
        this.tempcreateTime = GetTime.stampToDate(createTime);
    }

}
